package com.chixing.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author shy
 * @since 2022-10-20
 */
@TableName("car")
public class Car implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer carId;

    private String carName;

    private Float carPrice;

    private Integer carImgId;


    private Integer cayTypeId;


    private String carColor;


    private Integer carCardId;


    private Integer carStatus;


    private Float carDisplacement;


    private Integer carSeat;


    private String carCase;
    private String carCharger;

    private LocalDateTime createtime;


    private LocalDateTime updatetime;

    private Integer version;


    private String other1;


    private String other2;

    public Integer getCarId() {
        return carId;
    }

    public void setCarId(Integer carId) {
        this.carId = carId;
    }
    public String getCarName() {
        return carName;
    }

    public void setCarName(String carName) {
        this.carName = carName;
    }
    public Float getCarPrice() {
        return carPrice;
    }

    public void setCarPrice(Float carPrice) {
        this.carPrice = carPrice;
    }
    public Integer getCarImgId() {
        return carImgId;
    }

    public void setCarImgId(Integer carImgId) {
        this.carImgId = carImgId;
    }
    public Integer getCayTypeId() {
        return cayTypeId;
    }

    public void setCayTypeId(Integer cayTypeId) {
        this.cayTypeId = cayTypeId;
    }
    public String getCarColor() {
        return carColor;
    }

    public void setCarColor(String carColor) {
        this.carColor = carColor;
    }
    public Integer getCarCardId() {
        return carCardId;
    }

    public void setCarCardId(Integer carCardId) {
        this.carCardId = carCardId;
    }
    public Integer getCarStatus() {
        return carStatus;
    }

    public void setCarStatus(Integer carStatus) {
        this.carStatus = carStatus;
    }
    public Float getCarDisplacement() {
        return carDisplacement;
    }

    public void setCarDisplacement(Float carDisplacement) {
        this.carDisplacement = carDisplacement;
    }
    public Integer getCarSeat() {
        return carSeat;
    }

    public void setCarSeat(Integer carSeat) {
        this.carSeat = carSeat;
    }
    public String getCarCase() {
        return carCase;
    }

    public void setCarCase(String carCase) {
        this.carCase = carCase;
    }
    public String getCarCharger() {
        return carCharger;
    }

    public void setCarCharger(String carCharger) {
        this.carCharger = carCharger;
    }
    public LocalDateTime getCreatetime() {
        return createtime;
    }

    public void setCreatetime(LocalDateTime createtime) {
        this.createtime = createtime;
    }
    public LocalDateTime getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(LocalDateTime updatetime) {
        this.updatetime = updatetime;
    }
    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }
    public String getOther1() {
        return other1;
    }

    public void setOther1(String other1) {
        this.other1 = other1;
    }
    public String getOther2() {
        return other2;
    }

    public void setOther2(String other2) {
        this.other2 = other2;
    }

    @Override
    public String toString() {
        return "Car{" +
            "carId=" + carId +
            ", carName=" + carName +
            ", carPrice=" + carPrice +
            ", carImgId=" + carImgId +
            ", cayTypeId=" + cayTypeId +
            ", carColor=" + carColor +
            ", carCardId=" + carCardId +
            ", carStatus=" + carStatus +
            ", carDisplacement=" + carDisplacement +
            ", carSeat=" + carSeat +
            ", carCase=" + carCase +
            ", carCharger=" + carCharger +
            ", createtime=" + createtime +
            ", updatetime=" + updatetime +
            ", version=" + version +
            ", other1=" + other1 +
            ", other2=" + other2 +
        "}";
    }
}
